import request from '@/utils/request'

// 团队表选择性删除
export function deleteTeams(params) {
  return request({
    url: '/administrative/teams/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}

// 团队表选择性添加
export function insertTeams(data) {
  return request({
    url: '/administrative/teams/insertSelective',
    method: 'POST',
    data
  })
}

// 团队表选择性修改
export function updateTeams(data) {
  return request({
    url: '/administrative/teams/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 团队类型选择性修改查询
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 团队表分页查询
export function getTeamsList(params) {
  return request({
    url: '/administrative/teams/selectPage',
    method: 'POST',
    params
  })
}

// 类型名称查询
export function selectTypeName() {
  return request({
    url: '/administrative/teams/selectTypeName',
    method: 'POST'
  })
}

// 专业名称
export function selectProfessions() {
  return request({
    url: '/administrative/records/selectProfessions',
    method: 'POST'
  })
}

// 判断重复团队
export function isTeam(params) {
  return request({
    url: '/administrative/isTeam',
    method: 'POST',
    params
  })
}

